package com.ruoyi.stockLogs.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存变动日志对象 wdm_stock_change_log
 * 
 * @author ruoyi
 * @date 2025-06-16
 */
public class StockLogs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存变动ID（主键） */
    private Long logId;

    /** 商品规格ID */
    @Excel(name = "商品规格ID")
    private Long skuId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 工单ID */
    @Excel(name = "工单ID")
    private Long workId;

    /** 变动数量（正数=入库，负数=出库） */
    @Excel(name = "变动数量", readConverterExp = "正=数=入库，负数=出库")
    private Long changeQuantity;

    /** 变动类型 */
    @Excel(name = "变动类型")
    private String changeType;

    /** 实时库存 */
    @Excel(name = "实时库存")
    private Long currentStock;

    /** 业务参考号 */
    @Excel(name = "业务参考号")
    private String businessRef;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 删除 */
    private String delFlag;

    /** 版本号 */
    private Long version;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private Long goodsId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 商品信息
     *  关联商品名称
     *  需要创建get和set方法
     * */
    private String goodsName;


    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }

    public void setSkuId(Long skuId) 
    {
        this.skuId = skuId;
    }

    public Long getSkuId() 
    {
        return skuId;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setWorkId(Long workId) 
    {
        this.workId = workId;
    }

    public Long getWorkId() 
    {
        return workId;
    }

    public void setChangeQuantity(Long changeQuantity) 
    {
        this.changeQuantity = changeQuantity;
    }

    public Long getChangeQuantity() 
    {
        return changeQuantity;
    }

    public void setChangeType(String changeType) 
    {
        this.changeType = changeType;
    }

    public String getChangeType() 
    {
        return changeType;
    }

    public void setCurrentStock(Long currentStock) 
    {
        this.currentStock = currentStock;
    }

    public Long getCurrentStock() 
    {
        return currentStock;
    }

    public void setBusinessRef(String businessRef) 
    {
        this.businessRef = businessRef;
    }

    public String getBusinessRef() 
    {
        return businessRef;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("skuId", getSkuId())
            .append("orderId", getOrderId())
            .append("workId", getWorkId())
            .append("changeQuantity", getChangeQuantity())
            .append("changeType", getChangeType())
            .append("currentStock", getCurrentStock())
            .append("businessRef", getBusinessRef())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("goodsId", getGoodsId())
            .append("title", getTitle())
            .toString();
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }
}
